package org.x.user.entity;

import lombok.Data;
import lombok.AllArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 角色权限分配实体类
 *
 * @author 夏包包
 * @date 2025-03-08 13:39:03
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_role_perm")
public class SysRolePerm {

    /**
     * 角色权限分配ID
     */
    @TableId(type = IdType.ASSIGN_UUID)
    @Schema(description = "角色权限分配ID")
    private String id;

    /**
     * 角色ID
     */
    @Schema(description = "角色ID")
    private String roleId;

    /**
     * 权限ID
     */
    @Schema(description = "权限ID")
    private String permId;

    /**
     * 数据权限范围
     */
    @Schema(description = "数据权限范围")
    private String dataScope;
}
